﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace SocialIn.Web.UserControls
{
    public partial class UCTakeCalendar : System.Web.UI.UserControl
    {
        private string currentYear = DateTime.Now.Year.ToString();
        private string currentMonth = DateTime.Now.Month.ToString();
        private string width;// = "300";
        private string height;// = "300";
        public string userID;// = "";
        

        public string Width
        {
            get
            {
                return width;
            }
            set
            {
                width = value;
            }
        }

        public string Height
        {
            get
            {
                return height;
            }
            set
            {
                height = value;
            }
        }

        public string Year
        {
            get
            {
                return currentYear;
            }
            set
            {
                currentYear = value;
            }
        }

        public string Month
        {
            get
            {
                return currentMonth;
            }
            set
            {
                currentMonth = value;
            }
        }



        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Width = Height = "1";
            }
            if(Page.User != null)
                userID = Page.User.Identity.Name;
                //Response.Write(Request.IsAuthenticated.ToString() + userID + "," + FormsAuthentication.HashPasswordForStoringInConfigFile("1", "sha1"));
            
        }        
    }
}